package com.sxt.practiceapplication.entity.user;

import com.google.gson.annotations.SerializedName;

import org.jetbrains.annotations.NotNull;

public class LoginData {

    private String token;

    @SerializedName("user_id")
    private int userId;

    public LoginData() {
    }

    public LoginData(String token, int userId) {
        this.token = token;
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    @NotNull
    @Override
    public String toString() {
        return "LoginData{" +
                "token='" + token + '\'' +
                ", userId='" + userId + '\'' +
                '}';
    }
}
